home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Varsity Update 1998 August
/
SGI Varsity Update 1998 August.iso
/
dist
/
dist6.5
/
il_dev.idb
/
usr
/
include
/
il
/
ilLut.h.z
/
ilLut.h
Wrap
C/C++ Source or Header
|
1998-07-29
|
2KB
|
60 lines
#if 0
Copyright (c) 1991 SGI All Rights Reserved
THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SGI
The copyright notice above does not evidence any
actual or intended publication of such source code,
and is an unpublished work by Silicon Graphics, Inc.
This material contains CONFIDENTIAL INFORMATION that
is the property of Silicon Graphics, Inc. Any use,
duplication or disclosure not specifically authorized
by Silicon Graphics is strictly prohibited.
RESTRICTED RIGHTS LEGEND:
Use, duplication or disclosure by the Government is
subject to restrictions as set forth in subdivision
(c)(1)(ii) of the Rights in Technical Data and Computer
Software clause at DFARS 52.227-7013, and/or in similar
or successor clauses in the FAR, DOD or NASA FAR
Supplement. Unpublished- rights reserved under the
Copyright Laws of the United States. Contractor is
SILICON GRAPHICS, INC., 2011 N. Shoreline Blvd.,
Mountain View, CA 94039-7311
#endif
#ifndef _ilLut_h_
#define _ilLut_h_
#if !defined(IL2_5_COMPAT)
#error This header file is obsolete, use <ifl/iflColormap.h> or define IL2_5_COMPAT
#endif
/* include headers that the old IL header used to include */
#include <il/ilTypes.h>
#include <il/ilError.h>
/* include the new IFL version of the file */
#include <ifl/iflColormap.h>
/* old IL to new IFL compatibility defines */
class ilLut : public iflColormap {
public:
// Copy all of iflClormap's constructors (there should be an easier
// way to do this ...
ilLut() : iflColormap() {}
ilLut(int numChan, iflDataType dtype, int min, int max)
: iflColormap(numChan, dtype, min, max) {}
ilLut(void* table, int numChan, iflDataType dtype, int min, int max)
: iflColormap(table, numChan, dtype, min, max) {}
// Now add the constructor we need for backwards compatibility that got
// tossed (for good reason!) in IL 3.0.
ilLut(void* table, int numChan, iflDataType dtype, int tabBits=-1)
: iflColormap(table, numChan, dtype, 0, 1 << tabBits) {}
};
#endif